GtkScrolledWindow: Don't start fading right away
authorMatthias Clasen <mclasen@redhat.com>
Sat, 10 Jan 2015 02:13:10 +0000 (21:13 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 10 Jan 2015 02:15:07 +0000 (21:15 -0500)
When we get a leave event, we need to remove the over bit,
since we may not get motion events that tell us when we lose
proximity, but we don't have to fade out right away - that
will happen on its on due to inactivity a bit later. Having
the indicator stay visible for a bit feels more relaxed.

gtk/gtkscrolledwindow.c

index 174f70938d1ac03559f0cb23f26475d29efccea8..e1128e0340849c88fe0c31ceb47424f9152e8aa8 100644 (file)
@@ -394,9 +394,7 @@ gtk_scrolled_window_leave_notify (GtkWidget        *widget,
   if (priv->use_indicators)
     {
       indicator_set_over (&priv->hindicator, FALSE);
-      indicator_start_fade (&priv->hindicator, 0.0);
       indicator_set_over (&priv->vindicator, FALSE);
-      indicator_start_fade (&priv->vindicator, 0.0);
     }
 
   return GDK_EVENT_PROPAGATE;